package com.scm.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * Dealer entity. @author MyEclipse Persistence Tools
 */

public class Dealer implements java.io.Serializable {

	// Fields

	private Integer dealerId;
	private String dealerName;
	private String address;
	private String director;
	private String dealerPhone;
	private String faxNumber;
	private Double dealerMoney;
	private Set dealersales = new HashSet(0);
	private Set saleorders = new HashSet(0);

	// Constructors

	/** default constructor */
	public Dealer() {
	}

	/** minimal constructor */
	public Dealer(String dealerName, String address, String director,
			String dealerPhone, String faxNumber, Double dealerMoney) {
		this.dealerName = dealerName;
		this.address = address;
		this.director = director;
		this.dealerPhone = dealerPhone;
		this.faxNumber = faxNumber;
		this.dealerMoney = dealerMoney;
	}

	/** full constructor */
	public Dealer(String dealerName, String address, String director,
			String dealerPhone, String faxNumber, Double dealerMoney,
			Set dealersales, Set saleorders) {
		this.dealerName = dealerName;
		this.address = address;
		this.director = director;
		this.dealerPhone = dealerPhone;
		this.faxNumber = faxNumber;
		this.dealerMoney = dealerMoney;
		this.dealersales = dealersales;
		this.saleorders = saleorders;
	}

	// Property accessors

	public Integer getDealerId() {
		return this.dealerId;
	}

	public void setDealerId(Integer dealerId) {
		this.dealerId = dealerId;
	}

	public String getDealerName() {
		return this.dealerName;
	}

	public void setDealerName(String dealerName) {
		this.dealerName = dealerName;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDirector() {
		return this.director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public String getDealerPhone() {
		return this.dealerPhone;
	}

	public void setDealerPhone(String dealerPhone) {
		this.dealerPhone = dealerPhone;
	}

	public String getFaxNumber() {
		return this.faxNumber;
	}

	public void setFaxNumber(String faxNumber) {
		this.faxNumber = faxNumber;
	}

	public Double getDealerMoney() {
		return this.dealerMoney;
	}

	public void setDealerMoney(Double dealerMoney) {
		this.dealerMoney = dealerMoney;
	}

	public Set getDealersales() {
		return this.dealersales;
	}

	public void setDealersales(Set dealersales) {
		this.dealersales = dealersales;
	}

	public Set getSaleorders() {
		return this.saleorders;
	}

	public void setSaleorders(Set saleorders) {
		this.saleorders = saleorders;
	}

}